//
//  PhoneAreaSectionHeaderView.m
//  objective_c_language
//
//  Created by 王玉龙 on 2018/6/1.
//  Copyright © 2018年 longlong. All rights reserved.
//

#import "PhoneAreaSectionHeaderView.h"
#import "PhoneAreaCodeModel.h"

@implementation PhoneAreaSectionHeaderView

- (void)setCodeModel:(PhoneAreaCodeModel *)codeModel
{
    _codeModel = codeModel;
    
    NSString *firstChar = [codeModel.countryPinYin substringToIndex:1];
    self.textLabel.text = [firstChar capitalizedString];
}

@end
